package com.springboot.mapper;

import com.springboot.model.AssistantMessageInform;
import com.springboot.model.AssistantMessageInformKey;
import org.apache.ibatis.annotations.Mapper;

import java.util.ArrayList;

@Mapper
public interface AssistantMessageInformMapper {
    int deleteByPrimaryKey(AssistantMessageInformKey key);

    int insert(AssistantMessageInform record);

    int insertSelective(AssistantMessageInform record);

    AssistantMessageInform selectByPrimaryKey(AssistantMessageInformKey key);

    int updateByPrimaryKeySelective(AssistantMessageInform record);

    int updateByPrimaryKey(AssistantMessageInform record);


    AssistantMessageInform selectAssistantByMessage(AssistantMessageInform assistantMessageInform);


    int updateByTwoKey(AssistantMessageInformKey key);

    ArrayList<AssistantMessageInform> selectByAssistantId(Integer assistantId);

    ArrayList<AssistantMessageInform> selectAllNoReadByAssistantId(Integer assistantId);

    Integer getNoReadByAssistantId(Integer assistantId);
}